/**
 * @author Liangxin
 * @Date 2020/11/26
 */
import java.util.Scanner;
public class JudgePalindrome1 {
    public static void main(String[] args) {
        Method();
    }

    public static void Method() {
        System.out.println("请输入要判断的内容:");
        Scanner s = new Scanner(System.in);
        String str = s.next();
        int len = str.length();
        for (int i = 0; i < len; i++) {
            if (str.charAt(i) == str.charAt(len - 1 - i)) {
                if (i >= len / 2) {
                    System.out.println("是回文！");
                    break;
                }
            } else {
                System.out.println("不是回文！");
                break;
            }
        }
    }
}
